﻿using Haidou.Wpf.Util;
using Haidou.Wpf.Util.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Haidou.Wpf.UI.Util
{
	internal static class StorageUtils
	{
		internal static void PurgeCache()
		{
			//if (UserSettings.All.AskDeleteCacheWhenClosing && !CacheDialog.Ask(false, out _))
			//{
			//	return;
			//}

			try
			{
				//string cache = Other.AdjustPath(UserSettings.All.TemporaryFolderResolved);

				//Directory.Delete(cache, true);
			}
			catch (Exception e)
			{
				LogWriter.Log(e, "Purging cache");
			}
		}
	}
}
